package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 方法对象 md_method
 *
 * @author cell
 * @date 2023-10-16
 */
@ApiModel(value = "方法对象")
public class Method extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 方法id */
    private Long methodId;

    /** 方法编号 */
    @Excel(name = "方法编号")
    private String methodNo;

    /** 方法名称 */
    @Excel(name = "方法名称")
    private String methodName;

    /** 所属方法类型 */
    @Excel(name = "所属方法类型")
    private Long methodType;

    /** 版本 */
    @Excel(name = "版本")
    private Long version;

    /** 状态（0正常 1停用） */
    @ApiModelProperty("状态（0正常 1停用）")
    @Excel(name = "状态", readConverterExp = "状态（0正常 1停用）")
    private String status;

    /** 参考标准 */
    @Excel(name = "参考标准")
    private String referenceStandard;

    /** 变更申请单编号 */
    @Excel(name = "变更申请单编号")
    private String changeNo;

    /** 提交状态（0未提交 1已提交） */
    @Excel(name = "提交状态", readConverterExp = "0=未提交,1=已提交")
    private String submitStatus;

    /** 审核结果（0未审 1通过2未通过） */
    @Excel(name = "审核结果", readConverterExp = "0=未审,1=通过2未通过")
    private String auditResult;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 返回状态（0未返回,1已返回,2驳回） */
    @Excel(name = "返回状态", readConverterExp = "0未返回,1已返回,2驳回")
    private String send;

    private String taskId;

    @Excel(name = "任务状态", readConverterExp = "0未发起,1已发起,2已撤销")
    private String taskStatus;

    /** 所属类型对象 */
    private MethodType methodTypeList;

    public void setMethodId(Long methodId)
    {
        this.methodId = methodId;
    }

    public Long getMethodId()
    {
        return methodId;
    }
    public void setMethodNo(String methodNo)
    {
        this.methodNo = methodNo;
    }

    public String getMethodNo()
    {
        return methodNo;
    }
    public void setMethodName(String methodName)
    {
        this.methodName = methodName;
    }

    public String getMethodName()
    {
        return methodName;
    }
    public void setMethodType(Long methodType)
    {
        this.methodType = methodType;
    }

    public Long getMethodType()
    {
        return methodType;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }
    public void setReferenceStandard(String referenceStandard)
    {
        this.referenceStandard = referenceStandard;
    }

    public String getReferenceStandard()
    {
        return referenceStandard;
    }
    public void setChangeNo(String changeNo)
    {
        this.changeNo = changeNo;
    }

    public String getChangeNo()
    {
        return changeNo;
    }
    public void setSubmitStatus(String submitStatus)
    {
        this.submitStatus = submitStatus;
    }

    public String getSubmitStatus()
    {
        return submitStatus;
    }
    public void setAuditResult(String auditResult)
    {
        this.auditResult = auditResult;
    }

    public String getAuditResult()
    {
        return auditResult;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public MethodType getMethodTypeList() {
        return methodTypeList;
    }

    public void setMethodTypeList(MethodType methodTypeList) {
        this.methodTypeList = methodTypeList;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSend() {
        return send;
    }

    public void setSend(String send) {
        this.send = send;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("methodId", getMethodId())
            .append("methodNo", getMethodNo())
            .append("methodName", getMethodName())
            .append("methodType", getMethodType())
            .append("version", getVersion())
            .append("referenceStandard", getReferenceStandard())
            .append("changeNo", getChangeNo())
            .append("submitStatus", getSubmitStatus())
            .append("auditResult", getAuditResult())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("status", getStatus())
            .append("send", getSend())
            .append("taskStatus", getTaskStatus())
            .toString();
    }
}
